<?php

use backend\components\widget\adminLTE\ActiveForm;;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model backend\models\User */
/* @var $form yii\widgets\ActiveForm */
?>

<?php $form = ActiveForm::begin(); ?>
    <div class="box-body">

        <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'password_hash')->passwordInput(['maxlength' => true]) ?>

        <?//= $form->field($model, 'password_reset_token')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

        <?//= $form->field($model, 'auth_key')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'admin_avatar')->widget(\backend\components\widget\file\UploadWidget::class) ?>

        <?= $form->field($model, 'status')->radioList($model->statusTexts) ?>

        <?//= $form->field($model, 'updated_at')->textInput() ?>

        <?//= $form->field($model, 'created_at')->textInput() ?>
    </div>
    <div class="box-footer">
        <div class="pull-right">
            <?= Html::submitButton('<i class="fa fa-save"></i> 保存', ['class' => 'btn btn-success']) ?>
        </div>
    </div>
<?php ActiveForm::end(); ?>

